import getPosition from 'ph-position'
export default (el:HTMLElement)=>{
    const prect = (el.parentElement as HTMLElement).getBoundingClientRect()
    const {offsetHeight,offsetWidth} = el
    return getPosition({offsetHeight,offsetWidth},prect)
}